#include "Color.h"

namespace MiniWindow
{
	Color::Color()
	{
		this->B = 0;
		this->G = 0;
		this->R = 0;
		this->A = 0;
	}
	Color::Color(byte r, byte g, byte b)
	{
		this->B = b;
		this->G = g;
		this->R = r;
		this->A = 0;
	}
	Color::Color(byte r, byte g, byte b, byte a)
	{
		this->B = b;
		this->G = g;
		this->R = r;
		this->A = a;
	}

	int Color::Value() const
	{
		return  ((int)A | (int)R << 8 | (int)G << 16 | (int)B << 24);
	}
}